// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html


cc.Class({
    extends: cc.Component,
 
    properties: {
      city:"",
      hotSprite:cc.Sprite,
      myAtlas:cc.SpriteAtlas,
      myAlert:cc.Prefab
    },
    onload(){
      console.log("加载方法")
    },
    start () {
      console.log("this.hotSprite")
    },
    test (traget,data){
       console.log("点！"+traget+":"+data)
       console.log(this.hotSprite)
       this.hotSprite.spriteFrame = this.myAtlas.getSpriteFrame("224")
    },
    update: function (dt) {  // dt是距离上次刷新的时间 
      // console.log("帧"+dt)
    },
 
});